import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/index.vue'
import detail from '../views/detail.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    meta:{
      title:'游聆'
    },
    component: index
  },
  {
    path: '/detail',
    name: 'detail',
    meta:{
      title:'游聆|为游客省钱的语音导游'
    },
    component: detail
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
